package no.uials.distsys;

import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.Map;

/**
 *
 * @author Anders
 */
public interface AdminService extends Remote {
    Article addArticle(String name, double price, int stock, Position pos)
            throws RemoteException;
    Article addArticle(String name, double price, int stock, int aisle, int section, int shelf)
            throws RemoteException;
    Article removeArticle(String ID)
            throws RemoteException, DistSysException;
    int changeStock(Article article, int number)
            throws RemoteException;
    Map<String, Article> getArticles()
            throws RemoteException;
    Map<Integer, Order> listOrders()
            throws RemoteException;
    User getUser(String user)
            throws RemoteException, DistSysException;
}